package sctu.edu.java.year2016.team01.zhuming.day20160605.practice;

import sctu.edu.java.year2016.team02.zhoujie.day20160522.chapter4_3.Array;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

/**
 * Created by Administrator on 2016/6/11.
 */
public class BianLi {
    public static void main(String[] args) {
        List<Integer> list=new ArrayList<Integer>();
        for(int i=1;i<11;i++) {
            list.add(i);
        }
        Iterator<Integer> it=list.iterator();
        while(it.hasNext())

            System.out.println("该集合中的元素为："+it.next());

    }

}
